package com.enation.app.shop.front.policyInsurance.adminController.FileEnum;

public enum Type2 {

    BreedFactory(1,"养殖场全景"),
    Porcinephoto(2,"人猪合照"),
    Genitals (3,"生殖器照"),
    Earmark(4,"耳标特写照"),
    Headcutear(5,"头部割耳照"),
    HarmLessEarthsheltered(6,"无害化处理过程(掩土)"),
    Repersonnel(7,"勘查人员现场照"),
    HarmLessOver(8,"无害化处理过程(完成)"),
    Other(9,"其他相片"),
    DeadPig(10,"死亡猪"),
    Farmerimg(11,"养殖场照片/投保人照片"),
    Identifyimg(12,"组织机构代码/身份证照片"),
    Publicityimg(13,"公示照片"),
    Stockimg(14,"栏舍照片"),
    Pact(15,"电子版合同");
    private final int value;
    private final String description;

    private Type2(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public static Type2 from(int value) {
        for (Type2 from : Type2.values()) {
            if (from.value == value) {
                return from;
            }
        }
        return null;
    }

    public int value(){
        return value;
    }
    @Override
    public String toString(){
        return description;
    }
}
